
//   First bit of code from scratch
//   Copyright Steven Hull 2014
//   Bytes

// analogWrite function is analogWrite(pin,value)
// where pin = a pwm ~ pin and value is 0-255.

int led = 9;
<<<<<<< HEAD
int led2 = 10;
int led3 = 13;
int brightness1 = 0;
int fadeAmount1 = 10; //speed of PWM from 0-255
int brightness2 = 255;
int fadeAmount2 = 10; //speed of PWM from 0-255
=======
int brightness = 0;
int fadeAmount = 5;
>>>>>>> parent of ef53d16... Added LED2

void setup() {
  
  pinMode(led, OUTPUT);
<<<<<<< HEAD
  pinMode(led2, OUTPUT);
 // pinMode(led13, OUTPUT);
=======
>>>>>>> parent of ef53d16... Added LED2
  
}


void loop() {
  
<<<<<<< HEAD
  analogWrite(led,brightness1);
  analogWrite(led2,brightness2);
 // analogWrite(led3,10);
=======
  analogWrite(led,brightness);
>>>>>>> parent of ef53d16... Added LED2
  
  //change the brightness for next time through
  brightness = brightness + fadeAmount;
  
  if (brightness == 0 || brightness == 255) {
    fadeAmount = fadeAmount;
  }
  
  //wait for 30 milliseconds to see the dimming effect
  delay(30);
  

  
  
}








